import request from '@/utils/request'

// 获取门禁记录记录列表
export const accessLoglist = (query) => {
  return request({
    url: '/iot/accessRecord/list',
    method: 'get',
    params: query
  })
}


// 新增门禁记录列表
export const addAccessLog = (data) => {
    return request({
      url: '/iot/accessRecord',
      method: 'post',
      data
    })
  }

// 编辑门禁记录列表
export const editAccessLog = (data) => {
    return request({
      url: '/iot/accessRecord',
      method: 'put',
      data
    })
  }  

// 删除门禁记录列表
export const delAccessLog = (id) => {
    return request({
      url: '/iot/accessRecord/' + id,
      method: 'delete'
    })
  }    